package org.dtrd.modules.achievement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dtrd.modules.achievement.entity.bean.Achievement;
import org.dtrd.modules.achievement.entity.po.DtrdEntRdSigninAchievement;

import java.util.List;

/**
 * @author 萧
 * @date 2021-09-21 22:50:23
 **/
public interface IDtrdEntRdSigninAchievementService extends IService<DtrdEntRdSigninAchievement> {

    /**
     * 保存每日得分汇总
     *
     * @param patientId
     * @param recordDate
     * @param score
     */
    void saveDailyScore(Integer patientId, String recordDate, int score);

    /**
     * 查询每日得分
     *
     * @param patientId
     * @param recordDate
     * @return
     */
    Achievement getDailyScore(Integer patientId, String recordDate);

    /**
     * 查询得分列表
     *
     * @param patientId
     * @param recordDate
     * @return
     */
    List<Achievement> getScoreList(Integer patientId, String recordDate);

    List<Achievement> getAchievementList(Integer patientId, String startDate, String endDate);

    /**
     * 累计打卡天数
     */
    void summaryCheckinDays();
}
